
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
   
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
   <script type="text/javascript" src="script/general.js"> </script>
 <script type="text/javascript" src="script/gen_validatorv31.js"> </script>
 <script type="text/javascript" src="script/form_validation.js"> </script>
  
  <script type="text/javascript" src="script/mm_menu.js"> </script>
  </head>
  <%

 if(session.getAttribute("user")==null)
     response.sendRedirect("LoginForm.jsp?status=Session Expired");
 %>
  <body>
      <jsp:include page="Header.jsp"></jsp:include>
  
   <%
     if(request.getParameter("status")!=null){
    %>
    <font color="red"><%=request.getParameter("status") %></font>
    <%} %>
   <form name="loginform" action="./OperatorReplyAction">
   <table align="center" bgcolor="#ffddd">
   <tr><td align="center" colspan="2" bgcolor="nabi"><font color="white"><b>Complaints Reply Form</b></font></td></tr>
   <%
      int userid=Integer.parseInt(request.getParameter("userid"));
      int cmpid=Integer.parseInt(request.getParameter("cmpid"));
    String cmpdiscription= request.getParameter("cmpdiscription");
     %>
    <tr><td align='right'><b>Userid :</b>
   </td><td ><input type="text" name="userid" value="<%=userid %>" readonly='readonly'>
   <input type="hidden" name="cmpid" value="<%=cmpid %>" ></td><tr>
   <td align='right'><b>Complaint discription :</b></td>
   <td><input type="text" name="cmpdiscription" value="<%=cmpdiscription %>" readonly='readonly'>
</td></tr>
  
   <tr>
   <tr>
   <td align='right'><b>Complaint replay :</b></td>
   <td><textarea name="ComplaintDesc" height="" width="">
</textarea></td>
  
   <tr>
   <td align='right'><input type="submit" value="PostReply"></td>
   <td align='left'><input type="reset" value="Cancel"></td>
   </tr>
   
   </table>
   </form>
   <script language="JavaScript" type="text/javascript">
//You should create the validator only after the definition of the HTML form
  var frmvalidator  = new Validator("loginform");
  
 
  frmvalidator.addValidation("desc","req","Please enter Complaint desc");
  
  frmvalidator.addValidation("complaintdate","req","Please enter Complaint Date");
 
 
     
 </script>

          <jsp:include page="Footer.jsp"></jsp:include>
  </body>
</html>
